<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background-color: blueviolet;
        }
    </style>
</head>
<body>
    <div>手机端</div>
    <script>
        if(!navigator.userAgent.match(/(iPhone|Android|IOS|Ipad)/i)){
            location.assign('16.navigator对象.html');
        }
    </script>


</body>
</html>